package cn.tedu.toa.management.commons.controller;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/*
该控制器用于返回当前项目中的所有视图
 */
@Controller
public class PageController {

    @RequestMapping("/admin")
    public String  getIndexPage(){
        return "starter";
    }

    @RequestMapping("/sys/menuList")
    public String getMenuListPage(){
        //前缀和后缀都不写 已配好
        return "/sys/menu_list";
    }

    @RequestMapping("/sys/menuEdit")
    public String getMenuEdit(){
        //前缀和后缀都不写 已配好
        return "/sys/menu_edit";
    }

    @RequestMapping("/sys/roleList")
    public String getRoleList(){
        return "/sys/role_list";
    }

    @RequestMapping("/sys/roleEdit")
    public String getRoleEdit(){
        return "/sys/role_edit";
    }

    @RequestMapping("/sys/userListPage")
    public String getUsrList(){
        return "/sys/user_list";
    }

    @RequestMapping("/sys/userEdit")
    public String getUserEdit(){
        return "/sys/user_edit";
    }

    @RequestMapping("/sys/keyServicesListPage")
    public String getKeyServicesList(){
        return "/sys/keyServices_List";
    }

    @RequestMapping("/sys/keyServicesEdit")
    public String getKeyServicesEdit(){
        return "/sys/keyServices_edit";
    }

    @RequestMapping("/sys/keyServicesInsert")
    public String getKeyServicesInsert(){
        return "/sys/keyServices_insert";
    }

    @RequestMapping("/sys/newsListPage")
    public String getNewsList(){
        return "/sys/news_list";
    }

    @RequestMapping("/sys/newsInsert")
    public String getNewsInsert(){
        return "/sys/news_insert";
    }

    @RequestMapping("/sys/newsEdit")
    public String getNewsEdit(){
        return "/sys/news_edit";
    }

    @RequestMapping("/loginPage")
    public String getLoginPage(){
        return "login";
    }

    @RequestMapping({"/index","/"})
    public String getIndex(){
        return "../front/index";
    }

    @RequestMapping("/keyServices")
    public String getKeyServices(){
        return "../front/keyServices";
    }

    @RequestMapping("/news")
    public String getNews(){
        return "../front/news";
    }

    @RequestMapping("/newsCenter")
    public String getNewsCenter(){
        return "../front/newsCenter";
    }

    @RequestMapping("/aboutUs")
    public String getAboutUs(){
        return "../front/aboutUs";
    }

    @RequestMapping("/service")
    public String getService(){
        return "../front/service";
    }

    @RequestMapping("/breSources")
    public String getBreSources(){
        return "../front/bresources";
    }


    @RequestMapping("/sys/pwdEdit")
    public String getPwdEdit(){
        return "/sys/pwd_edit";
    }

    @RequestMapping("/sys/bresourcesList")
    public String getBresources(){
        return "/sys/breSource_list";
    }

    //comInfo_edit.html
    @RequestMapping("/sys/comInfo")
    public String getComInfo(){
        return "/sys/comInfo_edit";
    }

}
